﻿using System;
using System.Threading;

namespace CommonUtil
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class ThreadClass
    {
        Thread thread = null;
        abstract public void Run();
        public void Start()
        {
            if (thread == null)
                thread = new Thread(Run);
            thread.IsBackground = true; //
            thread.Start();
        }
    }
}
